package com.fluxtool.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.fluxtool.entity.Quartzs;
import com.fluxtool.mapper.QuartzsMapper;
import com.fluxtool.service.QuartzsService;

@Service
public class QuartzsServiceImpl extends ServiceImpl<QuartzsMapper, Quartzs> implements QuartzsService{

	@Autowired
	private QuartzsMapper quartzsMapper;
	
	@Override
	public List<Quartzs> selectAllWhereEnble() {
		EntityWrapper<Quartzs> entityWrapper = new EntityWrapper<Quartzs>();
		entityWrapper.where("enble = {0}", 1);
		return quartzsMapper.selectList(entityWrapper);
	}

}
